﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ObservePattern
{
    class Program
    {
        static void Main(string[] args)
        {
            ConcreteObservable observable = new ConcreteObservable();
            ConcreteObserver observer = new ConcreteObserver();

            observable.Register(observer);
            observable.AskPrice = 5.5f;
            observable.Number = 6;
            observable.UnRegister(observer);

            Console.ReadKey();
        }
    }
}
